import {
	PageView
} from '@/layouts';

export default {
	path: '/briefing',
	name: 'briefing',
	redirect: '/briefing/Trigger',
	component: PageView,
	meta: {
		title: '简报管理',
		icon: 'mail',
		permission: [ 'BriefingManagement' ]
	},
	children: [{
		path: '/briefing/Trigger',
		name: 'briefingTriggerForm',
		component: () => import('@/views/briefing/Trigger'),
		meta: {
			title: '简报列表',
			permission: [ 'bulletinTrigger_list' ]
		},
	},
	{
		path: '/briefing/AddTrigger',
		name: 'briefingAddTriggerAdd',
		component: () => import('@/views/briefing/AddTrigger'),
		meta: {
			title: '添加简报',
			permission: [ 'bulletinTrigger_add' ]
		},
	},
	{
		path: '/briefing/editTrigger/:id',
		name: 'briefingeditTriggerEdit',
		component: () => import('@/views/briefing/AddTrigger'),
		meta: {
			title: '编辑简报',
			permission: [ 'bulletinTrigger_update' ]
		},
		hidden: true
	},
	// {
	// 	path: '/briefing/Contacts',
	// 	name: 'briefingContactsForm',
	// 	component: () => import('@/views/briefing/Contacts'),
	// 	meta: {
	// 		title: '简报联系人',
	// 	},
	// },
	{
		path: '/briefing/Record',
		name: 'briefingRecordForm',
		component: () => import('@/views/briefing/Record'),
		meta: {
			title: '简报记录',
			permission: [ 'bulletinRecord_list' ]
		},
	},
	// {
	// 	path: '/alert/detail/:id',
	// 	name: 'AlertdetailForm',
	// 	component: () => import('@/views/alert/detail'),
	// 	meta: {
	// 		title: '报警详情',
	// 	},
	// 	hidden: true
	// },
	],
};
